package com.simple.cloud.domain.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@ApiModel
@Data
@Accessors(chain = true)
@Table(value = "sys_role_menu")
public class SysRoleMenu implements Serializable {
    @Id(keyType = KeyType.None)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long roleId;
    @Id(keyType = KeyType.None)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long menuId;
}
